package com.aaa.service.controller;

import com.aaa.service.annotation.MyPermission;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ${崔灿}
 * @date 2022/11/13 20:46
 **/
@RestController
@RequestMapping("/user")
public class UserController {
    @PostMapping("/list")
    @MyPermission("list")
    public String list(){
        System.out.println("查询用户");
        return "list";
    }
    @PostMapping("/save")
    @MyPermission("save")
    public String save(){
        System.out.println("添加用户");
        return "save";
    }
}
